<template>
  <div>
      <!-- 聚豆可用 -->
      <div class="changtiao">
          <span id="doudou" class="iconfont icon-jindoudou"></span>
          <span class="num">17</span>
          <span class="keyong">聚豆可用</span>
          <span class="ruhe" v-on:click="fun()">如何赚取聚豆?</span>
      </div>
      <!-- 渲染 -->
     <div class="xinghong">
      <div class="zhiyue" v-for="(v, i) in arr1" :key="i">
        <div class="zuo">
          <div class="picture">
            <img :src="v.img" alt="" />
          </div>
          <div class="xinghong1">
            <p class="seven" v-on:click="fun1()">{{ v.text }}</p>
            <!-- <p class="dou">{{ v.text1 }}</p> -->
            <p class="judou"><i>{{v.num}}</i>聚豆</p>
            
          </div>
        </div>
        <div class="you">
          <div class="dui">兑换</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import getapi from "@/apis/getapi.js";
export default {
  mounted() {
    getapi("/xiaojiang").then((ok) => {
      this.arr1 = ok.data.data11;

    //   console.log(ok);
    });
  },
  data() {
    return {
      arr1: [],
    };
  },
  methods:{
    fun(){
      this.$router.push("./Four")
    },
    fun1(){
      this.$router.push("./Seven")
    }
  }
};
</script>

<style scoped>
/* 如何赚取 */
.changtiao{
    width: 100%;
    height: 0.5rem;
    /* background-color: bisque; */
    margin-top: 0.3rem;
}
#doudou{
    width: 10%;
    height: 00.5rem;
    line-height: 00.5rem;
    color: rgb(196, 121, 24);
    font-size: .2rem;
}
.num{
    color: crimson;
    font-size: .18rem;
    margin-left: 0.1rem;
    height: 00.5rem;

}
.keyong{
    font-size: .18rem;
    font-weight: 700;
    height: 00.5rem;
    
}
.ruhe{
    position: absolute;
    font-size: .16rem;
    color: #3091f2;
    margin-left: 1.3rem;
    width: 30%;
    height: 00.5rem;
    line-height: 00.5rem;
}
/* 商品类型 */
.xinghong {
  width: 100%;
  height: 9.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* background-color: aqua; */
  margin-top: 0.15rem;
}
.zhiyue {
  width: 100%;
  height: 0.7rem;
  /* background-color: bisque; */
  display: flex;
  justify-content: space-between;
}
.zuo {
  width: 55%;
  height: 0.7rem;
  /* background-color: blueviolet; */
  display: flex;
  justify-content: space-between;
}
.picture {
  width: 45%;
  height: 00.7rem;
  /* background-color: bisque; */
}
.picture img {
  width: 100%;
  height: 100%;
}
.xinghong1 {
  width: 55%;
  height: 00.7rem;
  /* background-color: rgb(177, 54, 177); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.seven {
  /* background-color: blue; */
  height: 0.4rem;
  width: 100%;
  font-size: 0.12rem;
  line-height: 00.4rem;
  text-align: center;
  font-weight: 900;
}
/* 预留 */
.judou{
    color: #9f9f9f;
    margin-left: 0.2rem;
}
i{
    color: #d45d57;
    margin-right: 0.05rem;
}
.you {
  width: 25%;
  height: 0.7rem;
  /* background-color: cadetblue; */
  position: relative;
}
.dui {
  width: 100%;
  height: 0.3rem;
  line-height: 0.7rem;
  background-color: #fed140;
  border-radius: 0.3rem;
  position: absolute;
  margin-top: 21%;
  justify-content: center;
  align-items: center;
  display: flex;
  font-size: 0.16rem;
}
</style>